package xyz.robinbingo.effectivejava.chapter04.item21;

import cn.hutool.core.lang.Console;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Robin
 * @date 2019/03/21 15:33
 **/
@RunWith(SpringRunner.class)
@SpringBootTest
public class Item21 {

    @Test
    public void test00() {
        List<String> strings = new ArrayList<>();
        strings.removeIf("a"::equals);
    }

    @Test
    public void test01() {
        List<String> list = List.of("1", "2", "3");
        list.add("4");
        Console.log(list);
    }
}
